<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->

<link rel="import" href="/static/html/app-page.html">
<link rel="import" href="/static/html/code-block/code-block.html">
<link rel="import" href="api-link.html">

<template>
  <app-page pageTitle="Documentation">

    <h1>Buildbot integration</h1>
    <p>Buildbot-Buildbucket integration is implemented in
    <a href="https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/master/buildbucket/">
    buildbucket</a> module. Connecting a Buildbot master to buildbucket is
    trivial:</p>
    <code-block>from master import buildbucket

buildbucket.setup(
    c,  # Configuration object.
    ActiveMaster,
    buckets=['chromium'],
)</code-block>

    <p>Buildbot supports the following build parameters:
      <ul>
        <li>builder_name (str): builder name for the build, required.</li>
        <li>properties (dict): arbitrary build properties.</li>
        <li>changes (list of dict): changes for the build, each include revision,
          author, etc.</li>
      </ul>
      See details in the
      <a href="https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/master/buildbucket/README.md">
      README.md</a>.</p>

  </app-page>
</template>
